package com.vvitt.kotlinhiltcarhome.mapper

import com.vvitt.kotlinhiltcarhome.entity.CarBrandEntity
import com.vvitt.kotlinhiltcarhome.model.CarBrandItemModel

/**
 * @ClassName Entity2ItemModelMapper
 * @author please call me police uncel
 * @since 2023/5/25.
 * @email 110
 * @Version: V1.0.0
 * @desciption 数据库实体与展示的实体之间的转换
 **/
class Entity2ItemModelMapper: Mapper<CarBrandEntity, CarBrandItemModel> {
    override fun map(input: CarBrandEntity): CarBrandItemModel =
        CarBrandItemModel(id = input.id,
            name = input.name,
            icon = input.icon
        )


}